const test = (config) => {
    //当出现重复时，后面的覆盖前面
    config = {...{
            name: "默认名",
            title: "默认标题",
        }, ...config};
    console.log(config);
}

test({name: "John", age: 30});
